package com.ypx.ec.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ypx.ec.common.utils.PageUtils;
import com.ypx.ec.product.entity.AttrEntity;
import com.ypx.ec.product.vo.AttrRespVo;
import com.ypx.ec.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author yepinxi
 * @email 1554039596@qq.com
 * @date 2022-03-10 16:57:27
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params, Long catelogId, String attrtype);

    void saveDetail(AttrVo attr);

    AttrRespVo getAttrInfo(Long attrId);


    void update(AttrRespVo attr);

    List<AttrEntity> getAttrByGroupId(Long attrGroupId);

    PageUtils getNoAttrByAttrtype(Map<String, Object> params,   Long attrGroupId);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

